﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="SettingKnownledge.aspx.cs" Inherits="TamTreSoSinh.Admin.SettingKnownledge" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="Form1" runat="server">
    <b>Kiến thức / tin tức</b><br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCreated="GridView1_RowCreated">
        <Columns>
            <asp:BoundField DataField="Priority" HeaderText="Thứ tự" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="/Admin/SettingKnownledgeDetail.aspx?Id={0}"
                DataTextField="Title" HeaderText="Tiêu đề" />
            <asp:BoundField DataField="IsOnHomePage" HeaderText="Hiển thị lên trang chủ" />
            <asp:TemplateField HeaderText="Xóa">
                <ItemTemplate>
                    <asp:HiddenField runat="server" ID="hidId" />
                    <asp:CheckBox runat="server" ID="chkDelete" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br />
    <asp:Button ID="btnAddNew" runat="server" Text="Add new" OnClick="btnAddNew_Click" />
    &nbsp;<asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" OnClientClick="return confirmDelete()"
        Text="Delete" />
    </form>
    <script type="text/javascript">
        function confirmDelete() {
            return confirm("Bạn có muốn xóa bài viết này?");
        }
    </script>
</asp:Content>
